{extend name="public/base"/}
{block name="body"}
<div class="main-box no-header clearfix">

	<!-- 标题栏 -->
	<header class="main-box-header clearfix">
		<div class="pull-left">
			<h2>修改用户</h2>
		</div>
		<div class="pull-right">
		</div>
	</header>

	<div class="main-box-body clearfix">
		<!-- 修改密码表单 -->
		<form method="post" class="form-horizontal">
  		<div class="form-group">
  			<label class="col-lg-2 control-label">名称：</label>
  			<div class="col-lg-6 col-sm-10">
  				<input type="text" name="name" class="form-control " autocomplete="off" value="{$info['name']}" />
  			</div>
  		</div>
  		<div class="form-group">
  			<label class="col-lg-2 control-label">电话：</label>
  			<div class="col-lg-6 col-sm-10">
  				<input type="text" name="phone" class="form-control " autocomplete="off" value="{$info['phone']}" />
  			</div>
  		</div>
  		<div class="form-group">
  			<label class="col-lg-2 control-label">生日：</label>
  			<div class="col-lg-6 col-sm-10">
  				<input type="text" name="birthday" id="birthday" class="form-control " autocomplete="off"  value="{$info['birthday']}" readonly />
          <input type="hidden" name="birthday_monthday" id="birthday_monthday"  value="{$info['birthday_monthday']}"  />
  			</div>
  		</div>
      <!-- datepicker statr -->
      <link href="__PUBLIC__/plugs/datepicker/css/foundation-datepicker.min.css" rel="stylesheet" type="text/css">
      <script src="__PUBLIC__/plugs/datepicker/js/foundation-datepicker.js"></script>
      <script src="__PUBLIC__/plugs/datepicker/js/foundation-datepicker.zh-CN.js"></script>
      <link rel="stylesheet" type="text/css" href="__PUBLIC__/plugs/board/board.min.css">
      <!-- datepicker end -->
      <script>
      $('#birthday').fdatepicker({
      	format: 'yyyy-mm-dd',
      }).on('changeDate', function (ev) {
          var bdata = $('#birthday').val();
          bdata = bdata.split('-');

          bdata = bdata[1]+''+bdata[2]
          console.log(bdata);
          $('#birthday_monthday').val(bdata)
				});
      </script>
      <input type="hidden" name="id"  value="{$info['id']}"  />
			<div class="form-group">
				<div class="col-lg-offset-2 col-lg-10">

					<button type="submit" class="btn btn-primary submit-btn ajax-post" target-form="form-horizontal">确 认</button>
					<button class="btn btn-default btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
				</div>
			</div>
		</form>
	</div>
</div>
{/block}
